package cn.edu.jxust.common.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author QiuKangming
 * @version 1.0
 * @description 用户修改密码视图对象
 * @since 2020/07/24 17:49
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PasswordVo {

    @NotNull(message = "用户名id不能为空")
    private Integer id;

    @NotBlank(message = "用户原始密码不能为空")
    private String oldpassword;

    @NotBlank(message = "用户密码不能为空")
    private String password;

}
